package cn.com.aiton.common.model;

import java.io.Serializable;

public class NodeDomain extends BaseDomain implements Serializable {
    private String deviceName;//设备名称
    private String ipAddress;//设备IP
    private Integer port;//端口号
    private String deviceVersion;//版本号
    private String longitude;//经度
    private String latitude;//纬度
    private Integer maintainAppUserId;//维护人员ID
    private String crossId;//路口ID
    private Integer aLivePort;//端口号
    private String regionID;
    private String subRegionID;
    /**
     * 与其他服务端交互添加
     */
    private String signalControllerID;//信号机设备编号 取值12位交通管理部门机构代码（见GA/T 380-2012）+5位数字

    public NodeDomain(String deviceName, String ipAddress, Integer port, String deviceVersion, String longitude, String latitude, Integer maintainAppUserId, String crossId, Integer aLivePort, String signalControllerID) {
        this.deviceName = deviceName;
        this.ipAddress = ipAddress;
        this.port = port;
        this.deviceVersion = deviceVersion;
        this.longitude = longitude;
        this.latitude = latitude;
        this.maintainAppUserId = maintainAppUserId;
        this.crossId = crossId;
        this.aLivePort = aLivePort;
        this.signalControllerID = signalControllerID;
    }

    public String getRegionID() {
        return regionID;
    }

    public void setRegionID(String regionID) {
        this.regionID = regionID;
    }

    public String getSubRegionID() {
        return subRegionID;
    }

    public void setSubRegionID(String subRegionID) {
        this.subRegionID = subRegionID;
    }

    public NodeDomain(String deviceName, String ipAddress, Integer port, String deviceVersion, String longitude, String latitude, Integer maintainAppUserId, String crossId, Integer aLivePort, String regionID, String subRegionID, String signalControllerID) {
        this.deviceName = deviceName;
        this.ipAddress = ipAddress;
        this.port = port;
        this.deviceVersion = deviceVersion;
        this.longitude = longitude;
        this.latitude = latitude;
        this.maintainAppUserId = maintainAppUserId;
        this.crossId = crossId;
        this.aLivePort = aLivePort;
        this.regionID = regionID;
        this.subRegionID = subRegionID;
        this.signalControllerID = signalControllerID;
    }

    public String getCrossId() {
        return crossId;
    }

    public void setCrossId(String crossId) {
        this.crossId = crossId;
    }

    public Integer getaLivePort() {
        return aLivePort;
    }

    public void setaLivePort(Integer aLivePort) {
        this.aLivePort = aLivePort;
    }

    public NodeDomain() {
    }

    @Override
    public String toString() {
        return "NodeDomain{" +
                "deviceName='" + deviceName + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                ", port=" + port +
                ", deviceVersion='" + deviceVersion + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", maintainAppUserId=" + maintainAppUserId +
                ", signalControlerID='" + signalControllerID + '\'' +
                '}';
    }

    public NodeDomain(String deviceName, String ipAddress, Integer port, String deviceVersion, String longitude, String latitude, Integer maintainAppUserId, String signalControllerID) {
        this.deviceName = deviceName;
        this.ipAddress = ipAddress;
        this.port = port;
        this.deviceVersion = deviceVersion;
        this.longitude = longitude;
        this.latitude = latitude;
        this.maintainAppUserId = maintainAppUserId;
        this.signalControllerID = signalControllerID;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getDeviceVersion() {
        return deviceVersion;
    }

    public void setDeviceVersion(String deviceVersion) {
        this.deviceVersion = deviceVersion;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getMaintainAppUserId() {
        return maintainAppUserId;
    }

    public void setMaintainAppUserId(Integer maintainAppUserId) {
        this.maintainAppUserId = maintainAppUserId;
    }

    public String getSignalControllerID() {
        return signalControllerID;
    }

    public void setSignalControllerID(String signalControllerID) {
        this.signalControllerID = signalControllerID;
    }
}
